package com.admgt.profile.ui;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author James
 */
public class ProfileEditFrame extends javax.swing.JFrame {

    private JPanel panelTemplateBtn;
	private JPanel panelServerFileList;
	private JPanel panelServerFileListBtn;
	private JPanel panelFileAttr;
	private JPanel panelProfileFileList;
	/**
     * Creates new form ProfileFrame
     */
    public ProfileEditFrame() {
        //initComponents();
        init();
        
       /* jPanel2.setBorder(BorderFactory.createLineBorder(Color.green));
         jPanel4.setBorder(BorderFactory.createLineBorder(Color.red));
          jPanel6.setBorder(BorderFactory.createLineBorder(Color.gray));
           jPanel7.setBorder(BorderFactory.createLineBorder(Color.orange));
            jPanel8.setBorder(BorderFactory.createLineBorder(Color.black));
             panelFileList.setBorder(BorderFactory.createLineBorder(Color.blue));
              panelProfile.setBorder(BorderFactory.createLineBorder(Color.lightGray));
               panelTemplate.setBorder(BorderFactory.createLineBorder(Color.pink));*/
    }

    private void init() {
    	setTitle("节目单管理");
    	setSize(900,700);
    	setContentPane(createContentPane());
    	setMenu();
    	setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    	pack();
    	addWindowListener(new WindowAdapter(){
			@Override
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
    	});
	}

	private void setMenu() {
		
	}

	private Container createContentPane() {
		JPanel panelBoard = new JPanel(new BorderLayout());
		JButton buttonPrevious = new javax.swing.JButton();
		JButton buttonNext = new javax.swing.JButton();
		panelBoard.add(buttonPrevious);
		panelBoard.add(buttonNext);
		panelBoard.add(createProfilePane());
		panelBoard.add(createFileAttrPane());
		panelBoard.add(createTemplatePane());
		panelBoard.add(createServerFileListPane());
		panelBoard.add(createProfileFileListPane());
		panelBoard.add(createTemplateBtnPane());
		panelBoard.setBorder(BorderFactory.createLineBorder(Color.red));
		return panelBoard;
	}

	private Component createProfileFileListPane() {
		panelProfileFileList =new javax.swing.JPanel();
		return panelProfileFileList;
	}

	private Component createTemplateBtnPane() {
		panelTemplateBtn = new javax.swing.JPanel();
		JLabel labelTemplate = new javax.swing.JLabel();
		JComboBox comboTemplate = new javax.swing.JComboBox();
		JButton btTemplateMsg = new javax.swing.JButton();
		JButton btNewTemplate = new javax.swing.JButton();
		JButton btModifyTemplate = new javax.swing.JButton();
		labelTemplate.setText("模板：");
	    comboTemplate.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
	    btTemplateMsg.setText("模板信息");
	    btNewTemplate.setText("新建模板");
	    btModifyTemplate.setText("修改模板");
	    
	    javax.swing.GroupLayout panelTemplateBtnLayout = new javax.swing.GroupLayout(panelTemplateBtn);
	    panelTemplateBtn.setLayout(panelTemplateBtnLayout);
	    panelTemplateBtnLayout.setHorizontalGroup(
	    		panelTemplateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTemplateBtnLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelTemplate)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(comboTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btTemplateMsg)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btNewTemplate)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btModifyTemplate)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
	    panelTemplateBtnLayout.setVerticalGroup(
	    		panelTemplateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTemplateBtnLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelTemplateBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(comboTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTemplate)
                    .addComponent(btTemplateMsg)
                    .addComponent(btNewTemplate)
                    .addComponent(btModifyTemplate))
                .addGap(0, 10, Short.MAX_VALUE))
        );
		return panelTemplateBtn;
	}

	private Component createProfilePane() {
		panelProfile = new javax.swing.JPanel();
		JLabel labelProfile = new javax.swing.JLabel();
		JComboBox    comboProfile = new javax.swing.JComboBox();
		JLabel    lbTerminalType = new javax.swing.JLabel();
		JTextField    textTerminalType = new javax.swing.JTextField();
		JLabel    labelTotalTime = new javax.swing.JLabel();
		JTextField    textTotalTime = new javax.swing.JTextField();
		JLabel    labelSecond = new javax.swing.JLabel();
		JButton    btBackground = new javax.swing.JButton();
		JButton    buttonSave = new javax.swing.JButton();
		JButton   buttonSaveAs = new javax.swing.JButton();
		JButton    buttonPreview = new javax.swing.JButton();
		labelProfile.setText("Profile:");
        comboProfile.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Profile 1", "Profile 2", "Profile 3", " " }));
        lbTerminalType.setText("终端类型：");
        textTerminalType.setText("Android");
        labelTotalTime.setText("总时长：");
        textTotalTime.setText("3600");
        labelSecond.setText("秒");
        btBackground.setText("Profile背景");
        buttonSave.setText("保存");
        buttonSaveAs.setText("另存为");
        buttonPreview.setText("预览");
        javax.swing.GroupLayout panelProfileLayout = new javax.swing.GroupLayout(panelProfile);
        panelProfile.setLayout(panelProfileLayout);
        panelProfileLayout.setHorizontalGroup(
            panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelProfileLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelProfileLayout.createSequentialGroup()
                        .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelProfileLayout.createSequentialGroup()
                                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelProfile)
                                    .addComponent(lbTerminalType))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(comboProfile, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(textTerminalType, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(panelProfileLayout.createSequentialGroup()
                                .addComponent(labelTotalTime)
                                .addGap(18, 18, 18)
                                .addComponent(textTotalTime, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(labelSecond)))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(panelProfileLayout.createSequentialGroup()
                        .addComponent(btBackground, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(buttonPreview)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonSave)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonSaveAs))))
        );
        panelProfileLayout.setVerticalGroup(
            panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelProfileLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelProfile)
                    .addComponent(comboProfile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbTerminalType)
                    .addComponent(textTerminalType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTotalTime)
                    .addComponent(textTotalTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSecond))
                .addGap(29, 29, 29)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btBackground)
                    .addComponent(buttonSave)
                    .addComponent(buttonSaveAs)
                    .addComponent(buttonPreview))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
		return panelProfile;
	}

	private Component createServerFileListPane() {
		panelServerFileList = new javax.swing.JPanel();
		panelServerFileList.add(createServerFileListBtnPane());
		JLabel labelServerFiles = new javax.swing.JLabel();
		JTabbedPane tabbedPaneServerFiles = new javax.swing.JTabbedPane();
		JScrollPane paneVideo = new javax.swing.JScrollPane();
		JTable tableVideo = new javax.swing.JTable();
		JScrollPane paneAudio = new javax.swing.JScrollPane();
		JTable tableAudio = new javax.swing.JTable();
		JScrollPane panePicture = new javax.swing.JScrollPane();
		JTable tablePicture = new javax.swing.JTable();
		JScrollPane paneText = new javax.swing.JScrollPane();
		JTable tableText = new javax.swing.JTable();
		labelServerFiles.setText("文件库");
		tableVideo.setModel(new javax.swing.table.DefaultTableModel(
		            new Object [][] {
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null}
		            },
		            new String [] {
		                "文件名", "文件大小", "文件路径"
		            }
		        ) {
		            Class[] types = new Class [] {
		                java.lang.String.class, java.lang.String.class, java.lang.String.class
		            };

		            public Class getColumnClass(int columnIndex) {
		                return types [columnIndex];
		            }
		        });
		        paneVideo.setViewportView(tableVideo);

		        tabbedPaneServerFiles.addTab("视频", paneVideo);

		        tableAudio.setModel(new javax.swing.table.DefaultTableModel(
		            new Object [][] {
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null}
		            },
		            new String [] {
		                "文件名", "文件大小", "文件路径"
		            }
		        ) {
		            Class[] types = new Class [] {
		                java.lang.String.class, java.lang.String.class, java.lang.String.class
		            };

		            public Class getColumnClass(int columnIndex) {
		                return types [columnIndex];
		            }
		        });
		        paneAudio.setViewportView(tableAudio);

		        tabbedPaneServerFiles.addTab("音频", paneAudio);

		        tablePicture.setModel(new javax.swing.table.DefaultTableModel(
		            new Object [][] {
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null}
		            },
		            new String [] {
		                "文件名", "文件大小", "文件路径"
		            }
		        ) {
		            Class[] types = new Class [] {
		                java.lang.String.class, java.lang.String.class, java.lang.String.class
		            };

		            public Class getColumnClass(int columnIndex) {
		                return types [columnIndex];
		            }
		        });
		        panePicture.setViewportView(tablePicture);

		        tabbedPaneServerFiles.addTab("图片", panePicture);

		        tableText.setModel(new javax.swing.table.DefaultTableModel(
		            new Object [][] {
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null},
		                {null, null, null}
		            },
		            new String [] {
		                "文件名", "文件大小", "文件路径"
		            }
		        ) {
		            Class[] types = new Class [] {
		                java.lang.String.class, java.lang.String.class, java.lang.String.class
		            };

		            public Class getColumnClass(int columnIndex) {
		                return types [columnIndex];
		            }
		        });
		        paneText.setViewportView(tableText);

		        tabbedPaneServerFiles.addTab("文本", paneText);

		        javax.swing.GroupLayout panelServerFileListLayout = new javax.swing.GroupLayout(panelServerFileList);
		        panelServerFileList.setLayout(panelServerFileListLayout);
		        panelServerFileListLayout.setHorizontalGroup(
		        		panelServerFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
		            .addGroup(panelServerFileListLayout.createSequentialGroup()
		                .addContainerGap()
		                .addGroup(panelServerFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
		                    .addComponent(labelServerFiles)
		                    .addComponent(tabbedPaneServerFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
		                    .addComponent(panelServerFileListBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		                .addGap(0, 11, Short.MAX_VALUE))
		        );
		        panelServerFileListLayout.setVerticalGroup(
		        		panelServerFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
		            .addGroup(panelServerFileListLayout.createSequentialGroup()
		                .addContainerGap()
		                .addComponent(labelServerFiles)
		                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
		                .addComponent(tabbedPaneServerFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 516, javax.swing.GroupLayout.PREFERRED_SIZE)
		                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
		                .addComponent(panelServerFileListBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
		                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		        );
		
		return panelServerFileList;
	}

	private Component createServerFileListBtnPane() {
		panelServerFileListBtn = new javax.swing.JPanel();
		JButton buttonAddFile = new javax.swing.JButton();
		JButton btRefreshServer = new javax.swing.JButton();
		JButton buttonDelServerFile = new javax.swing.JButton();
		
		buttonAddFile.setText("添加文件");
	    btRefreshServer.setText("刷新");
	    buttonDelServerFile.setText("删除");

	    javax.swing.GroupLayout panelServerFileListBtnLayout = new javax.swing.GroupLayout(panelServerFileListBtn);
	    panelServerFileListBtn.setLayout(panelServerFileListBtnLayout);
	    panelServerFileListBtnLayout.setHorizontalGroup(
	    		panelServerFileListBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
	            .addGroup(panelServerFileListBtnLayout.createSequentialGroup()
	                .addGap(25, 25, 25)
	                .addComponent(buttonAddFile)
	                .addGap(18, 18, 18)
	                .addComponent(btRefreshServer)
	                .addGap(32, 32, 32)
	                .addComponent(buttonDelServerFile)
	                .addGap(0, 41, Short.MAX_VALUE))
	        );
	    panelServerFileListBtnLayout.setVerticalGroup(
	    		panelServerFileListBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
	            .addGroup(panelServerFileListBtnLayout.createSequentialGroup()
	                .addContainerGap()
	                .addGroup(panelServerFileListBtnLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
	                    .addComponent(buttonAddFile)
	                    .addComponent(btRefreshServer)
	                    .addComponent(buttonDelServerFile))
	                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
	        );
		return panelServerFileListBtn;
	}

	private Component createTemplatePane() {
		panelTemplate = new javax.swing.JPanel();
		javax.swing.GroupLayout panelTemplateLayout = new javax.swing.GroupLayout(panelTemplate);
        panelTemplate.setLayout(panelTemplateLayout);
        panelTemplateLayout.setHorizontalGroup(
            panelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        panelTemplateLayout.setVerticalGroup(
            panelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 272, Short.MAX_VALUE)
        );
		return panelTemplate;
	}

	private Component createFileAttrPane() {
		panelFileAttr = new javax.swing.JPanel();
		JLabel labelFileAttr = new javax.swing.JLabel();
		JLabel labelPlayTime = new javax.swing.JLabel();
		JLabel labelPlayCount = new javax.swing.JLabel();
		JTextField textPlayTime = new javax.swing.JTextField();
        JLabel labelSec = new javax.swing.JLabel();
        JTextField textPlayCount = new javax.swing.JTextField();
        JLabel labelCount = new javax.swing.JLabel();
        labelFileAttr.setText("文件属性");
        labelPlayTime.setText("播放时长");
        labelPlayCount.setText("播放次数");
        textPlayTime.setText("60");
        labelSec.setText("秒");
        textPlayCount.setText("2");
        labelCount.setText("次");
        javax.swing.GroupLayout panelFileAttrLayout = new javax.swing.GroupLayout(panelFileAttr);
        panelFileAttr.setLayout(panelFileAttrLayout);
        panelFileAttrLayout.setHorizontalGroup(
        		panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFileAttrLayout.createSequentialGroup()
                .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelPlayCount)
                    .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(panelFileAttrLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(labelFileAttr))
                        .addGroup(panelFileAttrLayout.createSequentialGroup()
                            .addGap(43, 43, 43)
                            .addComponent(labelPlayTime))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(textPlayTime, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                    .addComponent(textPlayCount))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelSec)
                    .addComponent(labelCount))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        panelFileAttrLayout.setVerticalGroup(
        		panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFileAttrLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelFileAttr)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPlayTime)
                    .addComponent(textPlayTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSec))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelFileAttrLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(labelPlayCount)
                        .addComponent(textPlayCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(labelCount))
                .addContainerGap(20, Short.MAX_VALUE))
        );
		return panelFileAttr;
	}

	/**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        panelProfile = new javax.swing.JPanel();
        labelProfile = new javax.swing.JLabel();
        comboProfile = new javax.swing.JComboBox();
        lbTerminalType = new javax.swing.JLabel();
        textTerminalType = new javax.swing.JTextField();
        labelTotalTime = new javax.swing.JLabel();
        textTotalTime = new javax.swing.JTextField();
        labelSecond = new javax.swing.JLabel();
        btBackground = new javax.swing.JButton();
        buttonSave = new javax.swing.JButton();
        buttonSaveAs = new javax.swing.JButton();
        buttonPreview = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        labelFileAttr = new javax.swing.JLabel();
        labelPlayTime = new javax.swing.JLabel();
        labelPlayCount = new javax.swing.JLabel();
        textPlayTime = new javax.swing.JTextField();
        labelSec = new javax.swing.JLabel();
        textPlayCount = new javax.swing.JTextField();
        labelCount = new javax.swing.JLabel();
        panelTemplate = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        labelServerFiles = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        buttonAddFile = new javax.swing.JButton();
        btRefreshServer = new javax.swing.JButton();
        buttonDelServerFile = new javax.swing.JButton();
        tabbedPaneServerFiles = new javax.swing.JTabbedPane();
        paneVideo = new javax.swing.JScrollPane();
        tableVideo = new javax.swing.JTable();
        paneAudio = new javax.swing.JScrollPane();
        tableAudio = new javax.swing.JTable();
        panePicture = new javax.swing.JScrollPane();
        tablePicture = new javax.swing.JTable();
        paneText = new javax.swing.JScrollPane();
        tableText = new javax.swing.JTable();
        panelFileList = new javax.swing.JPanel();
        labelProfileFiles = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        buttonUp = new javax.swing.JButton();
        buttonDown = new javax.swing.JButton();
        buttonDelete = new javax.swing.JButton();
        buttonLookup = new javax.swing.JButton();
        buttonRefresh = new javax.swing.JButton();
        buttonDownload = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable4 = new javax.swing.JTable();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTable5 = new javax.swing.JTable();
        buttonPrevious = new javax.swing.JButton();
        buttonNext = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        labelTemplate = new javax.swing.JLabel();
        comboTemplate = new javax.swing.JComboBox();
        btTemplateMsg = new javax.swing.JButton();
        btNewTemplate = new javax.swing.JButton();
        btModifyTemplate = new javax.swing.JButton();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(102, 204, 255));

        labelProfile.setText("Profile:");

        comboProfile.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Profile 1", "Profile 2", "Profile 3", " " }));

        lbTerminalType.setText("终端类型：");

        textTerminalType.setText("Android");

        labelTotalTime.setText("总时长：");

        textTotalTime.setText("3600");

        labelSecond.setText("秒");

        btBackground.setText("Profile背景");

        buttonSave.setText("保存");

        buttonSaveAs.setText("另存为");

        buttonPreview.setText("预览");

        javax.swing.GroupLayout panelProfileLayout = new javax.swing.GroupLayout(panelProfile);
        panelProfile.setLayout(panelProfileLayout);
        panelProfileLayout.setHorizontalGroup(
            panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelProfileLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelProfileLayout.createSequentialGroup()
                        .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(panelProfileLayout.createSequentialGroup()
                                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(labelProfile)
                                    .addComponent(lbTerminalType))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(comboProfile, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(textTerminalType, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(panelProfileLayout.createSequentialGroup()
                                .addComponent(labelTotalTime)
                                .addGap(18, 18, 18)
                                .addComponent(textTotalTime, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(labelSecond)))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(panelProfileLayout.createSequentialGroup()
                        .addComponent(btBackground, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(buttonPreview)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonSave)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonSaveAs))))
        );
        panelProfileLayout.setVerticalGroup(
            panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelProfileLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelProfile)
                    .addComponent(comboProfile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lbTerminalType)
                    .addComponent(textTerminalType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelTotalTime)
                    .addComponent(textTotalTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSecond))
                .addGap(29, 29, 29)
                .addGroup(panelProfileLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btBackground)
                    .addComponent(buttonSave)
                    .addComponent(buttonSaveAs)
                    .addComponent(buttonPreview))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        labelFileAttr.setText("文件属性");

        labelPlayTime.setText("播放时长");

        labelPlayCount.setText("播放次数");

        textPlayTime.setText("60");

        labelSec.setText("秒");

        textPlayCount.setText("2");

        labelCount.setText("次");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelPlayCount)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(labelFileAttr))
                        .addGroup(jPanel2Layout.createSequentialGroup()
                            .addGap(43, 43, 43)
                            .addComponent(labelPlayTime))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(textPlayTime, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                    .addComponent(textPlayCount))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelSec)
                    .addComponent(labelCount))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelFileAttr)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelPlayTime)
                    .addComponent(textPlayTime, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSec))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(labelPlayCount)
                        .addComponent(textPlayCount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(labelCount))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panelTemplateLayout = new javax.swing.GroupLayout(panelTemplate);
        panelTemplate.setLayout(panelTemplateLayout);
        panelTemplateLayout.setHorizontalGroup(
            panelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        panelTemplateLayout.setVerticalGroup(
            panelTemplateLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 272, Short.MAX_VALUE)
        );

        labelServerFiles.setText("文件库");

        buttonAddFile.setText("添加文件");

        btRefreshServer.setText("刷新");

        buttonDelServerFile.setText("删除");

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addComponent(buttonAddFile)
                .addGap(18, 18, 18)
                .addComponent(btRefreshServer)
                .addGap(32, 32, 32)
                .addComponent(buttonDelServerFile)
                .addGap(0, 41, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonAddFile)
                    .addComponent(btRefreshServer)
                    .addComponent(buttonDelServerFile))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        tableVideo.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "文件名", "文件大小", "文件路径"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        paneVideo.setViewportView(tableVideo);

        tabbedPaneServerFiles.addTab("视频", paneVideo);

        tableAudio.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "文件名", "文件大小", "文件路径"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        paneAudio.setViewportView(tableAudio);

        tabbedPaneServerFiles.addTab("音频", paneAudio);

        tablePicture.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "文件名", "文件大小", "文件路径"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        panePicture.setViewportView(tablePicture);

        tabbedPaneServerFiles.addTab("图片", panePicture);

        tableText.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null},
                {null, null, null}
            },
            new String [] {
                "文件名", "文件大小", "文件路径"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        paneText.setViewportView(tableText);

        tabbedPaneServerFiles.addTab("文本", paneText);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(labelServerFiles)
                    .addComponent(tabbedPaneServerFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                    .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(0, 11, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelServerFiles)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(tabbedPaneServerFiles, javax.swing.GroupLayout.PREFERRED_SIZE, 516, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        labelProfileFiles.setText("Profile文件");

        buttonUp.setText("向上");

        buttonDown.setText("向下");

        buttonDelete.setText("删除");

        buttonLookup.setText("查看");

        buttonRefresh.setText("刷新");

        buttonDownload.setText("下载");

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(buttonUp)
                    .addComponent(buttonDownload))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(buttonDown)
                    .addComponent(buttonLookup))
                .addGap(28, 28, 28)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(buttonDelete)
                    .addComponent(buttonRefresh))
                .addContainerGap(72, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonDown)
                    .addComponent(buttonUp)
                    .addComponent(buttonDelete))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonLookup)
                    .addComponent(buttonDownload)
                    .addComponent(buttonRefresh))
                .addGap(10, 10, 10))
        );

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "序号", "文件名"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTable1);

        jTabbedPane1.addTab("主频区", jScrollPane1);

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "序号", "文件名"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane2.setViewportView(jTable3);

        jTabbedPane1.addTab("音频", jScrollPane2);

        jTable4.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "序号", "文件名"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane4.setViewportView(jTable4);

        jTabbedPane1.addTab("图片/Flash", jScrollPane4);

        jTable5.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "序号", "文件名"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jScrollPane5.setViewportView(jTable5);

        jTabbedPane1.addTab("文本/URL", jScrollPane5);

        javax.swing.GroupLayout panelFileListLayout = new javax.swing.GroupLayout(panelFileList);
        panelFileList.setLayout(panelFileListLayout);
        panelFileListLayout.setHorizontalGroup(
            panelFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFileListLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelFileListLayout.createSequentialGroup()
                        .addComponent(labelProfileFiles)
                        .addContainerGap())
                    .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)))
        );
        panelFileListLayout.setVerticalGroup(
            panelFileListLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelFileListLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelProfileFiles)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        buttonPrevious.setText("上一步");

        buttonNext.setText("下一步");

        labelTemplate.setText("模板：");

        comboTemplate.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        btTemplateMsg.setText("模板信息");

        btNewTemplate.setText("新建模板");

        btModifyTemplate.setText("修改模板");

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelTemplate)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(comboTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(btTemplateMsg)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(btNewTemplate)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btModifyTemplate)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(comboTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTemplate)
                    .addComponent(btTemplateMsg)
                    .addComponent(btNewTemplate)
                    .addComponent(btModifyTemplate))
                .addGap(0, 10, Short.MAX_VALUE))
        );

        jMenu1.setText("File");

        jMenuItem1.setText("jMenuItem1");
        jMenu1.add(jMenuItem1);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Edit");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(panelProfile, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(panelFileList, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(panelTemplate, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addComponent(buttonPrevious)
                        .addGap(42, 42, 42)
                        .addComponent(buttonNext))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(panelProfile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(panelFileList, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelTemplate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addGap(7, 7, 7)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonPrevious)
                    .addComponent(buttonNext))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, 0, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ProfileEditFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ProfileEditFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ProfileEditFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ProfileEditFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new ProfileEditFrame().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify
    private javax.swing.JButton btBackground;
    private javax.swing.JButton btModifyTemplate;
    private javax.swing.JButton btNewTemplate;
    private javax.swing.JButton btRefreshServer;
    private javax.swing.JButton btTemplateMsg;
    private javax.swing.JButton buttonAddFile;
    private javax.swing.JButton buttonDelServerFile;
    private javax.swing.JButton buttonDelete;
    private javax.swing.JButton buttonDown;
    private javax.swing.JButton buttonDownload;
    private javax.swing.JButton buttonLookup;
    private javax.swing.JButton buttonNext;
    private javax.swing.JButton buttonPreview;
    private javax.swing.JButton buttonPrevious;
    private javax.swing.JButton buttonRefresh;
    private javax.swing.JButton buttonSave;
    private javax.swing.JButton buttonSaveAs;
    private javax.swing.JButton buttonUp;
    private javax.swing.JComboBox comboProfile;
    private javax.swing.JComboBox comboTemplate;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane paneVideo;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane paneAudio;
    private javax.swing.JScrollPane panePicture;
    private javax.swing.JScrollPane paneText;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane tabbedPaneServerFiles;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable tableVideo;
    private javax.swing.JTable jTable3;
    private javax.swing.JTable jTable4;
    private javax.swing.JTable jTable5;
    private javax.swing.JTable tableAudio;
    private javax.swing.JTable tablePicture;
    private javax.swing.JTable tableText;
    private javax.swing.JLabel labelCount;
    private javax.swing.JLabel labelFileAttr;
    private javax.swing.JLabel labelPlayCount;
    private javax.swing.JLabel labelPlayTime;
    private javax.swing.JLabel labelProfile;
    private javax.swing.JLabel labelProfileFiles;
    private javax.swing.JLabel labelSec;
    private javax.swing.JLabel labelSecond;
    private javax.swing.JLabel labelServerFiles;
    private javax.swing.JLabel labelTemplate;
    private javax.swing.JLabel labelTotalTime;
    private javax.swing.JLabel lbTerminalType;
    private javax.swing.JPanel panelFileList;
    private javax.swing.JPanel panelProfile;
    private javax.swing.JPanel panelTemplate;
    private javax.swing.JTextField textPlayCount;
    private javax.swing.JTextField textPlayTime;
    private javax.swing.JTextField textTerminalType;
    private javax.swing.JTextField textTotalTime;
    // End of variables declaration
}

